import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty } from 'class-validator';

export class LoginAuthDto {
  @ApiProperty({
    type: String,
    description: '用户id',
    default: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
  })
  @IsNotEmpty({ message: '用户id不能为空' })
  readonly id: string;

  @ApiProperty({
    type: String,
    description: '密码',
    default: '666666',
  })
  @IsNotEmpty({ message: '密码不能为空' })
  readonly password: string;
}
